package com.cameron.serviceedu;


import com.cameron.servicebase.config.RedisConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 课程后台管理启动类
 * @author cameron
 */
@EnableScheduling
@SpringBootApplication
@ComponentScan(basePackages = {"com.cameron"})
@EnableTransactionManagement
@EnableDiscoveryClient  //nacos注册
@EnableFeignClients     //发现服务
@Import(RedisConfig.class)
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class, args);
    }
}
